package com.lhk.appframework.factory;

public class FactoryAppDefault extends FactoryApp {

	private static FactoryAppDefault instance = null;
	private FactoryAppDefault() {
	}
	public static FactoryAppDefault getInstance(){
		if(instance == null){
			synchronized (FactoryAppDefault.class) {
				if(instance == null){
					instance = new FactoryAppDefault();
				}
			}
		}
		return instance;
	}
	
	
	@Override
	public FactoryPresenter getFactoryPresenter() {
		return FactoryPresenterDefault.getInstance();
	}

	@Override
	public FactoryManager getFactoryManager() {
		return FactoryManagerDefault.getInstance();
	}
	@Override
	public FactoryEngine getFactoryEngine() {
		// TODO Auto-generated method stub
		return FactoryEngineDefault.getInstance();
	}

}
